
package com.dhcc.bpm.modules.api.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dhcc.bpm.modules.api.entity.Sys;
import com.dhcc.bpm.modules.api.mapper.SysMapper;
import com.dhcc.bpm.modules.api.service.ISysService;
import com.dhcc.bpm.modules.api.vo.SysVO;
import com.dhcc.bpm.modules.common.vo.SelectVo;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName SysServiceImpl
 * @Description 系统表 服务实现类
 * @Author daina
 * @Date 2020/2/25 15:22
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Service("opc_sys")
public class SysServiceImpl extends BaseServiceImpl<SysMapper, Sys> implements ISysService {

	@Override
	public IPage<SysVO> selectSysPage(IPage<SysVO> page, SysVO sys) {
		return page.setRecords(baseMapper.selectSysPage(page, sys));
	}

	@Override
	public List<SelectVo> selectBySysName() {
		return baseMapper.selectBySysName();
	}

	@Override
	public List<SysVO> selectBySysNum(String sysNum) {
		return baseMapper.selectBySysNum(sysNum);
	}

	@Override
	public List<Sys> selectSysById(Long appId) {
		return baseMapper.selectSysById(appId);
	}

	@Override
	public Sys selectByName(String sysName) {
		return baseMapper.selectByName(sysName);
	}

	@Override
	public Sys selectBySysId(Long id) {
		return baseMapper.selectBySysId(id);
	}
}
